package com.shine.app.bean.responses;

import java.util.ArrayList;
import java.util.List;

import com.google.gson.annotations.SerializedName;
import com.shine.app.bean.BaseBean;
import com.shine.app.bean.PlaceBean;
import com.shine.app.bean.PlaceNearBean;

public class PlaceNearResponse extends BaseBean {

	private static final long serialVersionUID = 1L;
	@SerializedName("HasError")
	private boolean hasError;
	@SerializedName("ErrorMessage")
	private String errorMessage;
	@SerializedName("ErrorType")
	private String errorType;
	@SerializedName("Data")
	private List<PlaceNearBean> data;

	public boolean isHasError() {
		return hasError;
	}

	public String getErrorType() {
		return errorType;
	}

	public void setErrorType(String errorType) {
		this.errorType = errorType;
	}

	public void setHasError(boolean hasError) {
		this.hasError = hasError;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	public List<PlaceNearBean> getData() {
		return data;
	}

	public void setData(List<PlaceNearBean> data) {
		this.data = data;
	}

	public static List<PlaceNearBean> parse(PlaceNearResponse response) {
		List<PlaceNearBean> list = null;
		list = response.getData();
		return list;
	}

	public static List<PlaceNearBean> getPopularResult() {
		PlaceNearBean placeNearBean = null;
		List<PlaceNearBean> list = new ArrayList<PlaceNearBean>();
		placeNearBean = new PlaceNearBean(new PlaceBean(33.93988,
				-84.42306000000001, "Atlanta, GA"), 0);
		list.add(placeNearBean);
		placeNearBean = new PlaceNearBean(new PlaceBean(42.3823,
				-71.03230000000001, "Boston, MA"), 0);
		list.add(placeNearBean);
		placeNearBean = new PlaceNearBean(new PlaceBean(41.8749771, -87.70609,
				"Chicago, IL"), 0);
		list.add(placeNearBean);
		placeNearBean = new PlaceNearBean(new PlaceBean(32.7699,
				-96.86409999999999, "Dallas, TX"), 0);
		list.add(placeNearBean);
		placeNearBean = new PlaceNearBean(new PlaceBean(39.7124672,
				-105.104034, "Denver, CO"), 0);
		list.add(placeNearBean);
		placeNearBean = new PlaceNearBean(new PlaceBean(29.6745,
				-95.36790000000001, "Houston, TX"), 0);
		list.add(placeNearBean);
		placeNearBean = new PlaceNearBean(new PlaceBean(34.2011, -118.4742,
				"Los Angeles, CA"), 0);
		list.add(placeNearBean);
		placeNearBean = new PlaceNearBean(new PlaceBean(40.7399521,
				-73.81485000000001, "New York, NY"), 0);
		list.add(placeNearBean);
		placeNearBean = new PlaceNearBean(new PlaceBean(40.0650444,
				-75.2065048, "Philadelphia, PA"), 0);
		list.add(placeNearBean);
		placeNearBean = new PlaceNearBean(new PlaceBean(33.7352, -112.1294,
				"Phoenix, AZ"), 0);
		list.add(placeNearBean);
		placeNearBean = new PlaceNearBean(new PlaceBean(38.5762, -121.488,
				"Sacramento, CA"), 0);
		list.add(placeNearBean);
		placeNearBean = new PlaceNearBean(new PlaceBean(32.7234, -117.1678,
				"San Diego, CA"), 0);
		list.add(placeNearBean);
		placeNearBean = new PlaceNearBean(new PlaceBean(37.6216, -122.3929,
				"San Francisco, CA"), 0);
		list.add(placeNearBean);
		placeNearBean = new PlaceNearBean(new PlaceBean(47.6481361,
				-122.334351, "Seattle, WA"), 0);
		list.add(placeNearBean);
		return list;
	}
}
